import React, { useState } from 'react';
import List from './List';
import Search from './Search';
import styles from './index.module.less';
import { refer } from '@/component';

export default function Demo(props: any) {
    refer['demoSearch']?.search();
    return (
        <> 
            <Search name='demoSearch' />
            <div className={styles.space} />
            <List name='demoList' optAlign='right' />
        </>
    );
}
